package com.comdo.newup_loan.model;

import com.comdo.newup_loan.util.StringUtils;

/**
 * Created by liyuan on 2017/11/15.
 */

public class CostBean {
    private Cost cost;
    private String loanTime;
    private int borrowTimeTypes;
    private String name;
    private String portrait;

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public double getBorrowAmount() {
        return borrowAmount;
    }

    public void setBorrowAmount(double borrowAmount) {
        this.borrowAmount = borrowAmount;
    }

    private double borrowAmount;
    public Cost getCost() {
        return cost;
    }

    public void setCost(Cost cost) {
        this.cost = cost;
    }

    public String getLoanTime() {
        return loanTime;
    }

    public void setLoanTime(String loanTime) {
        this.loanTime = loanTime;
    }

    public int getBorrowTimeTypes() {
        return borrowTimeTypes;
    }

    public void setBorrowTimeTypes(int borrowTimeTypes) {
        this.borrowTimeTypes = borrowTimeTypes;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public class Cost {
        private double carStopCost;
        private double manageCost;
        private double vipRegisteCost;
        private double riskCost;
        private double serviceCost;
        private double gpsCost;
        private double gpsDeprecitionCost;
        private double submitCost;
        private double withdrawCost;
        private double keyCost;
        private double safeCost;
        private double drivingCost;
        private double illegalCost;
        private double mortgageCost;
        private double interestCost;

        public double getCarStopCost() {
            return carStopCost;
        }

        public void setCarStopCost(double carStopCost) {
            this.carStopCost = carStopCost;
        }

        public double getManageCost() {
            return manageCost;
        }

        public void setManageCost(double manageCost) {
            this.manageCost = manageCost;
        }

        public double getVipRegisteCost() {
            return vipRegisteCost;
        }

        public void setVipRegisteCost(double vipRegisteCost) {
            this.vipRegisteCost = vipRegisteCost;
        }

        public double getRiskCost() {
            return riskCost;
        }

        public void setRiskCost(double riskCost) {
            this.riskCost = riskCost;
        }

        public double getServiceCost() {
            return serviceCost;
        }

        public void setServiceCost(double serviceCost) {
            this.serviceCost = serviceCost;
        }

        public double getGpsCost() {
            return gpsCost;
        }

        public void setGpsCost(double gpsCost) {
            this.gpsCost = gpsCost;
        }

        public double getGpsDeprecitionCost() {
            return gpsDeprecitionCost;
        }

        public void setGpsDeprecitionCost(double gpsDeprecitionCost) {
            this.gpsDeprecitionCost = gpsDeprecitionCost;
        }

        public double getSubmitCost() {
            return submitCost;
        }

        public void setSubmitCost(double submitCost) {
            this.submitCost = submitCost;
        }

        public double getWithdrawCost() {
            return withdrawCost;
        }

        public void setWithdrawCost(double withdrawCost) {
            this.withdrawCost = withdrawCost;
        }

        public double getKeyCost() {
            return keyCost;
        }

        public void setKeyCost(double keyCost) {
            this.keyCost = keyCost;
        }

        public double getSafeCost() {
            return safeCost;
        }

        public void setSafeCost(double safeCost) {
            this.safeCost = safeCost;
        }

        public double getDrivingCost() {
            return drivingCost;
        }

        public void setDrivingCost(double drivingCost) {
            this.drivingCost = drivingCost;
        }

        public double getIllegalCost() {
            return illegalCost;
        }

        public void setIllegalCost(double illegalCost) {
            this.illegalCost = illegalCost;
        }

        public double getMortgageCost() {
            return mortgageCost;
        }

        public void setMortgageCost(double mortgageCost) {
            this.mortgageCost = mortgageCost;
        }

        public double getInterestCost() {
            return interestCost;
        }

        public void setInterestCost(double interestCost) {
            this.interestCost = interestCost;
        }

        @Override
        public String toString() {
            double Toatl = carStopCost + manageCost + vipRegisteCost + riskCost + serviceCost + gpsCost + gpsDeprecitionCost + submitCost + withdrawCost + keyCost + safeCost + drivingCost + illegalCost + mortgageCost + interestCost;
            return StringUtils.getMoneyString(Toatl);
        }
    }
}
